package com.example.administrator.zkdemo.utils;

import android.graphics.PointF;
import android.graphics.Rect;

/**
 * @author 丁可
 * @package com.example.administrator.zkdemo.utils
 * @fileName FaceInfo
 * @date 2018/11/23 0023 9:33
 * @description
 * @org http://www.gshbzw.com/ 人和致远数据服务有限责任公司
 */
public class FaceInfo {
    public float alignmentScore;
    public float detectionScore;
    public float eyeDist;
    public PointF[] facePoints;
    public Rect faceRect;
    public int id;
    public float pitch;
    public int pointsCount;
    public float roll;
    public float score;
    public float yaw;

    public FaceInfo clone() {
        FaceInfo localFaceInfo = new FaceInfo();
        localFaceInfo.faceRect = new Rect();
        PointF[] arrayOfPointF = this.facePoints;
        int i = 0;
        localFaceInfo.facePoints = new PointF[arrayOfPointF.length];
        localFaceInfo.faceRect.set(this.faceRect);
        while (i < localFaceInfo.facePoints.length) {
            localFaceInfo.facePoints[i] = new PointF();
            localFaceInfo.facePoints[i].set(this.facePoints[i]);
            i += 1;
        }
        localFaceInfo.id = this.id;
        localFaceInfo.score = this.score;
        localFaceInfo.detectionScore = this.detectionScore;
        localFaceInfo.alignmentScore = this.alignmentScore;
        localFaceInfo.pointsCount = this.pointsCount;
        localFaceInfo.yaw = this.yaw;
        localFaceInfo.pitch = this.pitch;
        localFaceInfo.roll = this.roll;
        localFaceInfo.eyeDist = this.eyeDist;
        return localFaceInfo;
    }

    public String toString() {
        StringBuilder localStringBuilder = new StringBuilder();
        localStringBuilder.append("FaceInfo(");
        localStringBuilder.append(this.faceRect);
        localStringBuilder.append(", ");
        localStringBuilder.append(this.score);
        localStringBuilder.append(")");
        return localStringBuilder.toString();
    }
}
